<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bus Design Pattern Information</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="<c:url value='/css/bootstrap.min.css'/>" rel="stylesheet">
<link href="<c:url value='/css/bootstrap-responsive.css'/>" rel="stylesheet">

</head>
<body>
	<div class="container">
		<div class="span9">
			<div class="page-header">
				<h3 style="margin-top:auto">总线通信设计模式详细信息</h3>
			</div>
			<div class="row-fluid">
			<div>
            <table class="table table-hover" style="width:80%">
				<thead>
					<tr>
						<th style="width:20%">属性</th>
						<th style="width:80%">详细信息</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>名称</td>
						<td><c:out value="${item.name}" /></td>
					</tr>
					
					<tr>
						<td>创建时间</td>
						<td><c:out value="${item.createTime.getYear()+1900}"/>-<c:out value="${item.createTime.getMonth()+1}"/>-<c:out value="${item.createTime.getDate()}"/></td>
					</tr>
					<tr>
						<td>最近修改时间</td>
						<td><c:out value="${item.lastModified.getYear()+1900}"/>-<c:out value="${item.lastModified.getMonth()+1}"/>-<c:out value="${item.lastModified.getDate()}"/></td>
					</tr>
					<tr>
						<td>版本</td>
						<td><c:out value="${item.version}"/></td>
					</tr>
					<tr>
						<td>创建者</td>
						<td><c:out value="${item.owner.username}"/></td>
					</tr>
					<tr>
						<td>描述信息</td>
						<td><c:out value="${item.description}"/></td>
					</tr>
              
					<tr>
						<td>操作</td>
						<td>
							<div class="btn-group">
								<button class="btn">编辑</button>
								<button class="btn">删除</button>
								<button class="btn" onclick="window.location.href='<%=request.getContextPath()%>/${item.uri.replace(':','/')}/download';">下载</button>
							</div>
						</td>
					</tr>
				</tbody>
            </table>
			</div>
			</div><!--/row-->
        </div><!--/span-->
	</div>
		
		<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="<c:url value='/js/jquery.min.js'/>"></script>
    <script src="<c:url value='/js/bootstrap.min.js'/>"></script>
		
</body>
</html>